package praktikumid.w06.p4;

public class Chicken extends Animal {

	public Chicken(int noOfLegs) {
		super.setNoOfLegs(noOfLegs);
	}
	
	public void fly() {
		System.out.println("Flyin...");
	}
	
	@Override
	public String toString() {
		return "I am a chicken!";
	}
	
	public void makeNoise() {
		System.out.println("Squawk!");
	}
	
}
